package cn.edu.scau.cmi.zengGuanSheng.composite.safe;

import java.util.ArrayList;
import java.util.List;

import javafx.scene.control.TextArea;

public abstract class SafeComponent {
	protected String name;
	protected List<SafeComponent> childern = new ArrayList<>();
	
	protected abstract SafeComponent getParent();
	
	protected abstract List<SafeComponent> getChildren();
	
	protected abstract void display(int level);
	
	//该方法为综合性实验而设
	protected abstract void display1(int level,TextArea textArea);
}
